package com.lyd.mybatis.demo.api.controller.v1;

import com.lyd.mybatis.demo.app.model.dto.RoleDTO;
import com.lyd.mybatis.demo.app.model.dto.RoleQueryDTO;
import com.lyd.mybatis.demo.app.model.vo.RoleVO;
import com.lyd.mybatis.demo.app.service.RoleService;
import com.lyd.sweet.web.controller.AbstractBasicController;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "默认方法单表操作测试")
@RestController
@RequestMapping(value = "/roles")
public class RoleController extends AbstractBasicController<RoleQueryDTO, RoleDTO, RoleVO> {
    public RoleController(RoleService roleService) {
        super(roleService);
    }
    //TODO 可根据业务 重写BasicController的方法 或新增方法 如：com.lyd.mybatis.demo.api.controller.v1.UserController
}
